package com.syh.core.ddd.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class AbstractSimpleEntityObject<ID extends Serializable> extends AbstractEntity<ID> {

  protected Long createTimeStamp;


  /**
   * 初始化uuid 创建时间戳
   */
  protected void initDefault() {
    this.createTimeStamp = System.currentTimeMillis();
  }
}
